﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LotesGestion.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="Stock_LotesGestion" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Src="../UserControls/Fecha.ascx" TagName="Fecha" TagPrefix="uc1" %>

<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center;">
        <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
        
        <table class="tablaForm" style="width: 550px" border="0">
            <tr>
                <td class="tdStock" colspan="4">
                    Gesti&oacute;n de Lote de un Art&iacute;culo</td>
            </tr>
            <tr>
                <td class="tdLiteral" colspan="4" style="text-align: center; height: 17px;">
                    <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion">Acci&oacute;n</asp:Label>&nbsp;</td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblRubro" runat="server" CssClass="label" Text="Rubro:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="width: 80%; text-align: left">
                    <asp:TextBox ID="txtRubro" runat="server" CssClass="cuadrotxt100" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblSubRubro" runat="server" CssClass="label" Text="SubRubro:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="width: 80%; text-align: left">
                    <asp:TextBox ID="txtSubRubro" runat="server" CssClass="cuadrotxt100" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right;">
                    <asp:Label ID="lblCodigo" runat="server" CssClass="label" Text="Código:"></asp:Label></td>
                <td  class="tdForm" colspan="3" style="text-align: left; width: 80%">
                    <asp:TextBox ID="txtCodigo" runat="server" CssClass="cuadrotxt" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right;">
                    <asp:Label ID="lblArtículo" runat="server" CssClass="label" Text="Artículo:"></asp:Label></td>
                <td class="tdForm" style="text-align: left;" colspan="3">
                    <asp:TextBox ID="txtArticulo" runat="server" CssClass="cuadrotxt100" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblLote" runat="server" CssClass="label" Text="Lote:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtLote" runat="server" CssClass="numero"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="Label1" runat="server" CssClass="label" Text="Fecha Vto.:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <uc1:Fecha ID="FechaVto" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblSaldo" runat="server" CssClass="label" Text="Saldo:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtSaldo" runat="server" CssClass="numero"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="Label2" runat="server" CssClass="label" Text="Costo Unitario:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtCosto" runat="server" CssClass="numero"></asp:TextBox></td>
            </tr>
            <tr id="trDeprecia" runat="server">
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:RadioButton ID="rdbDeprecia" runat="server" AutoPostBack="True" OnCheckedChanged="rdbDeprecia_CheckedChanged"
                        ValidationGroup="Cerrar" /></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:Label ID="lblDepreciar" runat="server" CssClass="label" Text="Deprecia Saldo:  se Elimina  del Stock."></asp:Label></td>
            </tr>
            <tr id="trArrastra" runat="server">
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:RadioButton ID="rdbArrastra" runat="server" AutoPostBack="True" OnCheckedChanged="rdbArrastra_CheckedChanged"
                        ValidationGroup="Cerrar" /></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:Label ID="lblArrastra" runat="server" CssClass="label" Text="Conserva Saldo:  queda en Stock sin Asignar a Lote."></asp:Label></td>
            </tr>
            <tr>
                <td class="tdBotones" colspan="4">
                    <asp:Button ID="btnGuardar" runat="server" CssClass="Boton" Text="Guardar" Width="75px" OnClick="btnGuardar_Click" />
                    &nbsp; &nbsp;
                    <asp:Button ID="btnCerrar" runat="server" CssClass="Boton" Text="Cerrar Lote" Width="75px" OnClick="btnCerrar_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnTraza" runat="server" CssClass="Boton" Text="Ver Traza" Width="75px" OnClick="btnTraza_Click" />
                    &nbsp; &nbsp;
                    <asp:Button ID="btnCancelar" runat="server" CssClass="Boton" Text="Cancelar" Width="75px" OnClick="btnCancelar_Click" />
                    </td>
            </tr>
        </table>
        
    </div> 
    <asp:Panel ID="pnlMensaje" runat="server" CssClass="tdBotones" Style="display: none"
        Width="233px">
        <div style="background-image: none; background-color: transparent; text-align: center">
            <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
            <br />
            <asp:Button ID="btnMensaje" runat="server" Text="OK" Width="64px" />
        </div>
    </asp:Panel>
    <table id="tblMensaje" runat="server" border="0" style="width: 0px; height: 0px">
        <tr>
            <td style="width: 100px; height: 18px">
                <asp:Button ID="btnMalMensaje" runat="server" Height="0px" Text="Button" Width="0px" />
            </td>
        </tr>
    </table>
    <cc1:ModalPopupExtender ID="mpeMensaje" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="true" OkControlID="btnMensaje" PopupControlID="pnlMensaje" TargetControlID="btnMalMensaje">
    </cc1:ModalPopupExtender>
</asp:Content>
    
